package com.example.justbuy.action.buyer;

import com.example.justbuy.pojo.Member;
import com.example.justbuy.service.MembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MembersAction {

    @Autowired
    private MembersService membersService;
    @RequestMapping("members_privileges.htm")
    public String membersManage(String vipCode, Model medel){
        Member member = membersService.getByVipCode(vipCode);
        medel.addAttribute("member",member);
        return "members_privileges.html";
    }
}
